function fakeAsync(){
  let delay = Math.random()*1000;

  return new Promise((resolve,reject)=>{
    setTimeout(()=>{
      console.log(`${delay}`);
      resolve(delay);
    },delay);
  });
}

(async function(){
  await fakeAsync();
})();

module.exports = fakeAsync;
